import request from '@/utils/request'

// 查询规则调用记录列表
export function listRuleIn(query) {
    return request({
        url: '/business/RuleIn/list',
        method: 'get',
        params: query
    })
}

// 查询规则调用记录详细
export function getRuleIn(id) {
    return request({
        url: '/business/RuleIn/' + id,
        method: 'get'
    })
}

// 新增规则调用记录
export function addRuleIn(data) {
    return request({
        url: '/business/RuleIn',
        method: 'post',
        data: data
    })
}

// 修改规则调用记录
export function updateRuleIn(data) {
    return request({
        url: '/business/RuleIn',
        method: 'put',
        data: data
    })
}

// 删除规则调用记录
export function delRuleIn(id) {
    return request({
        url: '/business/RuleIn/' + id,
        method: 'delete'
    })
}

// 导出规则调用记录
export function exportRuleIn(query) {
    return request({
        url: '/business/RuleIn/export',
        method: 'get',
        params: query
    })
}